package com.kkb.controller;


import com.kkb.pojo.TbShop;
import com.kkb.service.TbShopService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 *@description: 商家
 *@author: lxq
 */
@Api(tags = "商家服务")
@Controller
@RequestMapping("/TbShop")
public class TbShopController {
    @Autowired
    private TbShopService tbShopService;

    @ApiOperation(value = "查询所有商家")
    @ResponseBody
    @GetMapping("/getTbShopAll")
    public List<TbShop> getTbShopAll(){
        return tbShopService.getTbShopAll();
    }
}
